import {REQUEST} from "miniprogram-request";

Page({
    data: {
        TabCur    : 0,
        scrollLeft: 0,
        catlist   : []
    },
    onLoad(): void
    {
        this.getCatlist();
    },
    getCatlist()
    {
        REQUEST.get("playlist/hot").then(value =>
        {
            const res: any = value.data;
            if (res.code == 200)
            {
                this.setData({
                    catlist: res.tags
                })
            }
        })
    }

});